package net.supcmdr.test;

import net.supcmdr.test.gui.MenuBar;
import javax.swing.JFrame;
import javax.swing.JPanel;

import net.supcmdr.test.gui.MainPanel;

public class Program {
	
	private JFrame mainFrame;
	private MenuBar menu;
	private JPanel mainPanel;

	public Program(){
		initialize();
	}
	
	private void initialize(){
		
		// create the frame and define its properties
		mainFrame = new JFrame("SupCMDr's SVN Test App");
		mainFrame.setBounds(200, 150, 400, 300);
		mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		mainFrame.setResizable(false);
		
		
		// create the components
		menu = new MenuBar();
		mainPanel = new MainPanel();

		
		// add components to the frame
		mainFrame.setJMenuBar(menu);
		mainFrame.add(mainPanel);
		
	}
	
	public JFrame getMainFrame(){
		return mainFrame;
	}
	
}
